<template>
  <view :style="themeColor">
    <view class="page">
      <fu-custom bgColor="bg-white" :isBack="true" :isBottom="true">
        <block slot="content">实名认证</block>
      </fu-custom>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout">
        <view class='flex flex-wrap align-center shimingrenzhen_fd1_0'>
          <view class='flex flex-wrap align-center'>
            <image class='shimingrenzhen_fd1_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"580.png"'></image>
          </view>
          <view class='flex flex-direction flex-wrap align-stretch'>
            <text class='shimingrenzhen_fd1_0_c1_c0'>审核中</text>
            <text class='shimingrenzhen_fd1_0_c1_c1'>请耐心等待…</text>
          </view>
        </view>
        <view class='flex flex-wrap align-center shimingrenzhen_fd1_1'>
          <view class='flex flex-wrap align-center'>
            <image class='shimingrenzhen_fd1_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"581.png"'></image>
          </view>
          <view class='flex flex-direction flex-wrap align-stretch'>
            <text class='shimingrenzhen_fd1_0_c1_c0'>审核不通过</text>
            <text class='shimingrenzhen_fd1_1_c1_c1'>不通过原因：身份证号位数不对</text>
          </view>
          <button class='shimingrenzhen_fd1_1_c2'>重新提交</button>
        </view>
        <view class='flex flex-wrap align-center shimingrenzhen_fd1_2'>
          <view class='flex flex-wrap align-center'>
            <image class='shimingrenzhen_fd1_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"582.png"'></image>
          </view>
          <view class='flex flex-direction flex-wrap align-stretch'>
            <text class='shimingrenzhen_fd1_0_c1_c0'>已通过</text>
            <text class='shimingrenzhen_fd1_1_c1_c1'>恭喜您，实名认证已成功！</text>
          </view>
        </view>
        <view class='flex align-center justify-between shimingrenzhen_fd1_3'>
          <text class='shimingrenzhen_fd1_3_c0'>姓名</text>
          <input class='flex-sub shimingrenzhen_fd1_3_c1' type="number" :placeholder="`请输入`" confirm-type="done"
            :maxlength="-1" placeholder-style="color:#999;font-size:32rpx" />
        </view>
        <view class='flex align-center justify-between shimingrenzhen_fd1_4'>
          <text class='shimingrenzhen_fd1_3_c0'>身份证</text>
          <input class='flex-sub shimingrenzhen_fd1_3_c1' type="idcard" :placeholder="`请输入`" confirm-type="done"
            :maxlength="20" placeholder-style="color:#999;font-size:32rpx" />
        </view>

        <view class='flex  shimingrenzhen_fd1_5'></view>

        <view class='flex flex-direction align-stretch shimingrenzhen_fd1_6'>
          <text class='shimingrenzhen_fd1_6_c0'>请上传身份证</text>
          <view class='flex align-center justify-between'>
            <view class='flex flex-direction align-center'>
              <view class="upload position-relative">
                <text v-if="fd1_6_c1_c0_c0 != ''" @tap="fd1_6_c1_c0_c0 = ''"
                  class='fu-iconfont2 position-absolute shimingrenzhen_fd1_6_c1_c0_c0_icon'>&#xE8E7;</text>
                <image class=" shimingrenzhen_fd1_6_c1_c0_c0_image" mode="aspectFit"
                  @tap="soloChooseImage('fd1_6_c1_c0_c0id','fd1_6_c1_c0_c0',false,false)"
                  :src="fd1_6_c1_c0_c0 ? fd1_6_c1_c0_c0 : STATIC_URL+'612.png'"></image>
              </view>
              <text class='shimingrenzhen_fd1_6_c1_c0_c1'>身份证国徽面</text>
            </view>
            <view class='flex flex-direction align-center'>
              <image class='shimingrenzhen_fd1_6_c1_c1_c0' mode="aspectFit" :src='STATIC_URL+"577.png"'></image>
              <text class='shimingrenzhen_fd1_6_c1_c0_c1'>（示例）</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center shimingrenzhen_fd1_6_c2'>
          </view>
          <view class='flex align-center justify-between'>
            <view class='flex flex-direction align-center'>
              <view class="upload position-relative">
                <text v-if="fd1_6_c3_c0_c0 != ''" @tap="fd1_6_c3_c0_c0 = ''"
                  class='fu-iconfont2 position-absolute shimingrenzhen_fd1_6_c1_c0_c0_icon'>&#xE8E7;</text>
                <image class=" shimingrenzhen_fd1_6_c1_c0_c0_image" mode="aspectFit"
                  @tap="soloChooseImage('fd1_6_c3_c0_c0id','fd1_6_c3_c0_c0',false,false)"
                  :src="fd1_6_c3_c0_c0 ? fd1_6_c3_c0_c0 : STATIC_URL+'612.png'"></image>
              </view>
              <text class='shimingrenzhen_fd1_6_c1_c0_c1'>身份证人像面</text>
            </view>
            <view class='flex flex-direction align-center'>
              <image class='shimingrenzhen_fd1_6_c1_c1_c0' mode="aspectFit" :src='STATIC_URL+"578.png"'></image>
              <text class='shimingrenzhen_fd1_6_c1_c0_c1'>（示例）</text>
            </view>
          </view>
        </view>
        <view class='flex flex-direction align-stretch shimingrenzhen_fd1_6'>
          <view class='flex flex-wrap align-center'>
            <text class='shimingrenzhen_fd1_3_c0'>职业证件</text>
            <text class='shimingrenzhen_fd1_0_c1_c1'>(最多9张)</text>
          </view>
          <benben-images-upload ref="benbenImagesUploadfd1_7_c1" :maxlength="9">
            <template #content="{ num, maxlength, isShow, imgList }">
              <view class="flex flex-wrap align-start flex shimingrenzhen_fd1_7_c1">

                <view v-for="(image, index) in imgList" :key="index"
                  class='flex position-relative shimingrenzhen_fd1_7_c10'>
                  <text class='fu-iconfont2 position-absolute shimingrenzhen_fd1_6_c1_c0_c0_icon'
                    @tap.stop="$refs.benbenImagesUploadfd1_7_c1.delImage(index)">&#xE8E7;</text>
                  <image class='shimingrenzhen_fd1_7_c101'
                    @tap.stop="$refs.benbenImagesUploadfd1_7_c1.previewImage(index)" mode="aspectFit" :src='image'>
                  </image>
                </view>

                <image class='shimingrenzhen_fd1_7_c11' @tap.stop="$refs.benbenImagesUploadfd1_7_c1.manyChooseImage()"
                  v-if="isShow" mode="aspectFit" :src='STATIC_URL+"297.jpg"'></image>

              </view>
            </template>
          </benben-images-upload>
        </view>
        <button class='shimingrenzhen_fd1_8'>提交</button>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import UploadImage from '@/common/utils/upload-image.js'
  export default {
    components: {},


    data() {
      return {
        "fd1_6_c1_c0_c0": "",
        "fd1_6_c1_c0_c0id": "",
        "fd1_6_c3_c0_c0": "",
        "fd1_6_c3_c0_c0id": ""
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //上传单图、多图方法
      soloChooseImage(id, path, obj, obj1, fnName = false) {
        let self = this
        if (!obj) obj = this
        if (!obj1) obj1 = this
        if (self.uploading) {
          return
        }
        // 从相册中选择图片
        uni.chooseImage({
          count: 1, // 默认3
          sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图，默认二者都有
          success: function(res) {
            self.uploading = true
            // 开始上传
            new UploadImage(res.tempFiles, {
              complete: function(res) {
                self.uploading = false
                if (id) self.$set(obj, id, res[0].id)
                if (path) self.$set(obj1, path, res[0].path)
                if (fnName) self[fnName]()
              },
            })
          },
        })
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: var(--benbenbgColor1);
    background-size: 100% auto;
  }

  .shimingrenzhen_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .shimingrenzhen_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333;
    line-height: 88rpx;
  }

  .shimingrenzhen_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .shimingrenzhen_fd0_0_c0 {
    width: 120rpx;
  }

  .shimingrenzhen_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .shimingrenzhen_fd1_8 {
    background: #FF8533;
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    width: 686rpx;
    line-height: 88rpx;
    font-size: 32rpx;
    color: var(--benbenFontColor3);
    height: 88rpx;
    margin: 40rpx auto 40rpx auto;
  }

  .shimingrenzhen_fd1_7_c11 {
    width: 160rpx;
    height: 160rpx;
    margin: 0rpx 24rpx 24rpx 0rpx;
  }

  .shimingrenzhen_fd1_7_c101 {
    width: 160rpx;
    height: 160rpx;
  }

  .shimingrenzhen_fd1_7_c10 {
    margin: 0rpx 24rpx 24rpx 0rpx;
  }

  .shimingrenzhen_fd1_7_c1 {
    width: 750rpx;
    padding: 24rpx 0rpx 0rpx 24rpx;
  }

  .shimingrenzhen_fd1_6_c2 {
    height: 30rpx;
  }

  .shimingrenzhen_fd1_6_c1_c1_c0 {
    width: 315rpx;
    height: 204rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .shimingrenzhen_fd1_6_c1_c0_c1 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 40rpx;
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .shimingrenzhen_fd1_6_c1_c0_c0_image {
    width: 315rpx;
    height: 204rpx;
  }

  .shimingrenzhen_fd1_6_c1_c0_c0_icon {
    top: 0rpx;
    right: 0rpx;
    z-index: 10;
    color: #ff5536;
  }

  .shimingrenzhen_fd1_6_c0 {
    margin: 0rpx 0rpx 20rpx 0rpx;
    color: #333333;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 45rpx;
  }

  .shimingrenzhen_fd1_6 {
    margin: 32rpx 32rpx 0rpx 32rpx;
  }

  .shimingrenzhen_fd1_5 {
    background: rgba(246, 247, 249, 1);
    width: 750%;
    height: 10rpx;
    transform: scaleY(0.5);
  }

  .shimingrenzhen_fd1_4 {
    padding: 32rpx 32rpx 32rpx 32rpx;
  }

  .shimingrenzhen_fd1_3_c1 {
    text-align: right;
    margin: 0rpx 0rpx 0rpx 32rpx;
    font-size: 32rpx;
    font-weight: 400;
    color: #333;
  }

  .shimingrenzhen_fd1_3_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 45rpx;
  }

  .shimingrenzhen_fd1_3 {
    border-bottom: 1px solid #eee;
    padding: 32rpx 32rpx 32rpx 32rpx;
  }

  .shimingrenzhen_fd1_2 {
    background: rgba(52, 190, 98, 0.08);
    width: 750rpx;
    height: 128rpx;
  }

  .shimingrenzhen_fd1_1_c2 {
    border: 1px solid #FF8533;
    background: #FF8533;
    border-radius: 33rpx 33rpx 33rpx 33rpx;
    width: 174rpx;
    line-height: 60rpx;
    font-size: 24rpx;
    color: #fff;
    height: 64rpx;
  }

  .shimingrenzhen_fd1_1_c1_c1 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    width: 400rpx;
  }

  .shimingrenzhen_fd1_1 {
    background: rgba(204, 0, 0, 0.1);
    width: 750rpx;
    height: 128rpx;
  }

  .shimingrenzhen_fd1_0_c1_c1 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
  }

  .shimingrenzhen_fd1_0_c1_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 400;
  }

  .shimingrenzhen_fd1_0_c0_c0 {
    width: 80rpx;
    height: 80rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 16rpx 0rpx 32rpx;
  }

  .shimingrenzhen_fd1_0 {
    background: rgba(255, 133, 51, 0.12);
    width: 750rpx;
    height: 128rpx;
  }
</style>